package www.sofn.com.sys.user;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import www.sofn.com.sys.user.domain.pojo.SysUserPO;

import java.io.Serializable;
import java.util.Set;

@Mapper
public interface SysUserMapper extends BaseMapper<SysUserPO> {

    Boolean existUsername(@Param("username") String username);

    Set<String> findResourceCodeByUserId( @Param("userId") Serializable userId);

    Set<String> findRolesByUserId( @Param("userId") Serializable userId);
}
